<%@ taglib prefix="s" uri="/jodd" %>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ page import="org.jeecgframework.web.util.StaticValue" %>
<%@include file="/context/mytags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title>设备ITEM</title>
    <t:base type="jquery,easyui,tools,DatePicker"></t:base>
    <script type="text/javascript" src="plug-in/ckfinder/ckfinder.js"></script>
    <script type="text/javascript">
        //编写自定义JS代码
    </script>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="zyEsItemController.do?doUpdate"
             tiptype="3">
    <input id="id" name="id" type="hidden" value="${zyEsItemPage.id }">
    <input id="createName" name="createName" type="hidden" value="${zyEsItemPage.createName }">
    <input id="createBy" name="createBy" type="hidden" value="${zyEsItemPage.createBy }">
    <input id="createDate" name="createDate" type="hidden" value="${zyEsItemPage.createDate }">
    <input id="updateName" name="updateName" type="hidden" value="${zyEsItemPage.updateName }">
    <input id="updateBy" name="updateBy" type="hidden" value="${zyEsItemPage.updateBy }">
    <input id="updateDate" name="updateDate" type="hidden" value="${zyEsItemPage.updateDate }">
    <table cellpadding="0" cellspacing="1" class="formtable">
        <tr>
            <td align="right">
                <label class="Validform_label">
                    ITEM:
                </label>
            </td>
            <td class="value">
                <input id="item" name="item" type="text" style="width: 150px" class="inputxt"
                       value="${zyEsItemPage.item}" datatype="*"
                       ajaxurl="zyEsItemController.do?checkItemUnique&eiId=${zyEsItemPage.id}"/>
                <span class="Validform_checktip"></span>
                <label class="Validform_label" style="display: none;">ITEM</label>
            </td>
        </tr>
        <tr>
            <td align="right">
                <label class="Validform_label">
                    ITEMDESC:
                </label>
            </td>
            <td class="value">
                <input id="itemDesc" name="itemDesc" type="text" style="width: 150px" value="${zyEsItemPage.itemDesc}"
                       class="inputxt"/>
            </td>
        </tr>
        <tr>
            <td align="right">
                <label class="Validform_label">
                    中文描述:
                </label>
            </td>
            <td class="value">
                <input id="describes" name="describes" type="text" style="width: 150px" class="inputxt"
                       value="${zyEsItemPage.describes}"/>
            </td>
        </tr>
        <tr>
            <td align="right">
                <label class="Validform_label">
                    型号:
                </label>
            </td>
            <td class="value">
                <input name="type.id" type="hidden" id="type" value="${zyEsItemPage.type.id}"/>
                <input class="inputxt" id="typeName" readonly="readonly" datatype="*"
                       value="${zyEsItemPage.type.typeDesc }"/>
                <t:choose hiddenName="type" hiddenid="id" url="zyEmValidaRuleController.do?goChooseEquipmentType"
                          name="zyEquipmentTypeList"
                          icon="icon-search" title="机型" inputTextname="typeName" textname="text" isclear="true"
                          width="400px" height="500px"/>
                <span class="Validform_checktip"></span>
                <label class="Validform_label" style="display: none;">型号</label>
            </td>
        </tr>
        <tr>
            <td align="right">
                <label class="Validform_label">
                    使用范围:
                </label>
            </td>
            <td class="value">
                <input id="scope" name="scope" type="text" style="width: 150px" value="${zyEsItemPage.scope}"
                       class="inputxt"/>
            </td>
        </tr>
        <tr>
            <td align="right">
                <label class="Validform_label">
                    是否返件:
                </label>
            </td>
            <td class="value">
                <select id="isReturn" name="isReturn">
                    <option value="1" <s:if test="${zyEsItemPage.isReturn==1}">selected="selected"</s:if>>是</option>
                    <option value="2" <s:if test="${zyEsItemPage.isReturn==2}">selected="selected"</s:if>>否</option>
                </select>
            </td>
        </tr>
        <tr>
            <td align="right">
                <label class="Validform_label">
                    是否序列号追踪:
                </label>
            </td>
            <td class="value">
                <select id="isTrack" name="isTrack">
                    <option value="1" <s:if test="${zyEsItemPage.isTrack==1}">selected="selected"</s:if>>是</option>
                    <option value="2" <s:if test="${zyEsItemPage.isTrack==2}">selected="selected"</s:if>>否</option>
                </select>
            </td>
        </tr>
    </table>
</t:formvalid>
</body>
<script src="webpage/com/zybk/zy_es_item/zyEsItem.js"></script>		